﻿
using System;

namespace DE.Sdc.SharePoint.Common.Deployment.Administration
{
    [Serializable]
    public class JobSettings
    {
        /// <summary>
        /// Type of the job
        /// </summary>
        public string JobType { get; set; }

        /// <summary>
        /// Name of the job
        /// </summary>
        public string JobName { get; set; }

        /// <summary>
        /// Display title of the job
        /// </summary>
        public string JobDisplayTitle { get; set; }

        /// <summary>
        /// A Site url of the webapplication where the job should be created
        /// </summary>
        public string SiteUrl { get; set; }

        /// <summary>
        /// The job parameters
        /// </summary>
        private JobParameterCollection _parameters;
        public JobParameterCollection Parameters
        {
            get { return _parameters; }
            set { _parameters = value; }
        }

        /// <summary>
        /// The job scheduling information
        /// </summary>
        private JobParameterCollection _schedulingInformation;
        public JobParameterCollection SchedulingInformation
        {
            get { return _schedulingInformation; }
            set { _schedulingInformation = value; }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        public JobSettings()
        {
            Parameters = new JobParameterCollection();
            SchedulingInformation = new JobParameterCollection();
        }
    }
}
